Component({
  properties: {},
  data: {
    list: [
      // { image: 'refill', text: '充值', url: 'refill'},
      { image: 'qrcode', text: '推荐码', url: 'qr-code' },
      // { image: 'sign-in', text: '签到', url: 'sign-in' },
      { image: 'team', text: '我的团队', url: 'team' },
      { image: 'commission', text: '我的佣金', url: 'commission' },
      { image: 'cash', text: '提现管理', url: 'cash' },
      // { image: 'group', text: '我的拼团', url: 'group/0' },
      { image: 'password', text: '支付密码', url: 'pay-password' },
      { image: 'bank', text: '银行卡', url: 'bank' },
      { image: 'address', text: '收货地址', url: 'address-list' },
    ]
  },
  methods: {
    handleClick(event) {
      const item = event.currentTarget.dataset.item
      const url = item.url

      wx.navigateTo({
        url: `/sub_service/pages/${url}/index`
      })
    }
  }
});
